home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
DEBUG
/
WATCHES
/
WATCHES3.TXT
< prev
Wrap
Text File
|
1996-06-21
|
2KB
|
67 lines
(*
WATCHES3 TXT :example as mentioned in file "WATCHES.TXT". Also about
CONST+"strings"+',m' or ',h' etc. Note the ASCII-chars
below #32 - might be better not to print this file.
Links to:
See/text-search in file WATCHES.TXT for "WATCHES3.TXT".
*)
program x;
const s='aaa';
s2:string=#0#1#2#3#4' ';
var p:Pointer; pString:^string;
begin
p:=@s2[1];
pString:=@s2;
end.
╔═[■]══════════════════════════════ Watches ═════════════════
║ s: 'aaa'
║ s,c: 'aaa'
║ s,m: 'aaa'
║ s2: #0#1#2#3#4' '
║ s2,c: ' '
║ s2[1],20md: 0 1 2 3 4 32 0 0 0 0 0 0 0 0 0 0 0 0 0 0
║ p^,mmmmmmd: 0 1 2 3 4 32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
║ p^,mc: '
║ p^,ms: #0#1#2#3#4' '#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#
║ p^,mh: $0 $1 $2 $3 $4 $20 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0 $0
║ p: Ptr(DSeg,$3)
║ @p^: Ptr(DSeg,$3)
║ p^: Ptr(DSeg,$3)
║ pString: Ptr(DSeg,$2)
║ @pString^: Ptr(DSeg,$2)
║ pString^: #0#1#2#3#4' '
║ pString^,c: ' '
║ s2,h: #$0#$1#$2#$3#$4' '
BTW:
"s2,h"
corresponds to the source-code syntax for chars
eg.
ch:=#$20 = ch:=#32
"p^,mmmmmmd"
obviously, adding unnecessary specifiers can allow to have eg.
string variables' values positioned exactly "in the same columns"
for comparison. eg. if the variable names are of different length.
"s,m: 'aaa'"
Obviously "invalid/nonsense" format specifiers are simply ignored,
eg.
╔═[■]══════════════════════════════ Watches ═════════════════
║ s2,cc: ' '
║ s2,cd: ' '
║ s2,mmmmmmc: '
║ s2,mcpdrh$: '
║ s2,$hrdpcm: '
Oct-1995
jC,v960224